package com.xihua.sx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 *  多表查询，分页查询需要的类，将不是原来的表中的数据添加进来
 * </p>
 *
 * @author astupidcoder
 * @since 2023-06-16
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ReserveVo implements Serializable {

    /**
     * 车辆信息预定id
     */
    @TableId(value = "reserve_id", type = IdType.AUTO)
    private Integer reserveId;

    /**
     * 预定编号
     */
    private Integer reserveNumber;

    /**
     * 预定主题
     */
    private String reserveTopic;

    /**
     * 开始时间
     */
    private LocalDate startTime;

    /**
     * 结束时间
     */
    private LocalDate endTime;

    /**
     * 备注
     */
    private String reserveNotes;

    /**
     * 流程状态
     */
    private String reserveState;

    /**
     * 车辆信息id，关联car_info表
     */
    private Integer carId;

    /**
     * 驾驶员id,关联driver表
     */
    private Integer driverId;

    //car_code, car_brand, driver_name, phone_number
    private String carCode;

    private String carBrand;

    private String driverName;

    private String phoneNumber;
}
